/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Supporter;

import javax.swing.JOptionPane;

/**
 *
 * @author Ivan
 */
public class OurDialog {
    public static int YES = JOptionPane.YES_OPTION;

    public static void showInfoDialog(String message) {
        JOptionPane.showMessageDialog(null, message, "Thông báo", JOptionPane.INFORMATION_MESSAGE);
    }

    public static void showWarningDialog(String message) {
        JOptionPane.showMessageDialog(null, message, "Cảnh báo", JOptionPane.WARNING_MESSAGE);
    }

    public static void showErrorDialog(String message) {
        JOptionPane.showMessageDialog(null, message, "Lỗi", JOptionPane.ERROR_MESSAGE);
    }
    
    public static int showConfirmDialog(String message) {
        return JOptionPane.showConfirmDialog(null, message, "Xác nhận", JOptionPane.YES_NO_OPTION);
    }
}
